home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part2 / 10922 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: blue.cse.ogi.edu!leneis
  2. From: leneis@blue.cse.ogi.edu (Tony Leneis)
  3. Newsgroups: comp.sys.amiga.misc
  4. Subject: Re: AmigaOS 4.x features
  5. Date: 3 Apr 1996 04:36:55 GMT
  6. Organization: Oregon Graduate Institute (OGI), Portland, Oregon
  7. Message-ID: <4jsv97$dor@reuter.cse.ogi.edu>
  8. References: <4j7ein$a6v@B1FF.mindspring.com> <4jkg5j$dva@B1FF.mindspring.com> <4jl6pr$knv@reuter.cse.ogi.edu> <1108.6666T731T616@midland.co.nz>
  9. NNTP-Posting-Host: blue.cse.ogi.edu
  10.  
  11. In article <1108.6666T731T616@midland.co.nz>,
  12. John Severinsen <jsev@midland.co.nz> wrote:
  13. >On 31-Mar-96 17:56:11 (Msg ID: <4jl6pr$knv@reuter.cse.ogi.edu>), Tony Leneis
  14. >wrote:
  15. >--
  16. >>       Well, you can certainly do it with a current version of AmigaDOS.
  17. >>So, what's the problem?  One minor nit - that should be 'dir sys:[a-ce]*'
  18. >>if you want it to be the same as the 1.3 AmigaDOS pattern matching example
  19. >>above.  One thing I'd like to see added is the ability to compliment sets.
  20. >>i.e. [^abc] matches anything except 'a', 'b', or 'c'.
  21. >
  22. >If I understand what you mean, wouldn't ~[abc]  work here.
  23.  
  24.     Yes, that would match any file not named 'a', 'b', or 'c'; however,
  25. what I really had in mind was a little different.  As several people have
  26. kindly pointed out, AmigaDOS already does what I want with [~a-c].  The
  27. difference is I can embed that in the middle of a larger pattern - for
  28. example, [~a-m]#?.c would match all .c files which do not start with the
  29. letters a through m (inclusive.)  I don't know why I never picked up on
  30. that before - it sure makes a heck of a lot of sense.  I guess it wasn't
  31. documented explicitly in the manual, and I assumed that the complement
  32. operator would be different than the negation operator.  Oh well, live and
  33. learn...
  34.  
  35. -Tony
  36. -- 
  37. =====///===Hi!==I'm=a=.signature=virus!==Copy=me=to=your=.signature!===///==
  38. __  /// leneis@cse.ogi.edu          From the desk of:   Hillary,  __  ///   
  39. \\\///  tony@plaza.ds.adp.com       -->Tony Leneis<--   Gennifer, \\\///Only
  40.  \XX/   aleneis@gauss.math.hmc.edu  HMC '91  Go Stags!  AND NOW US!\XX/Amiga
  41.